<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>AI自动回复</title>
    <style>
        button {
            margin: 10px;
            padding: 15px 30px;
            font-size: 20px; /* Enlarged font size for the buttons */
            text-decoration: none;
            color: white;
            background-color: #007bff;
            border: none;
            border-radius: 5px;
            cursor: pointer;
        }
    </style>
</head>
<body>
    <h1>AI自动回复</h1>
    <h3>原始邮件</h3>
    <p><strong>主题：</strong>{{ original_email.title }}</p>
    <p><strong>内容：</strong>{{ original_email.textbody }}</p>
    <h3>AI回复</h3>
    <pre>{{ ai_reply | safe }}</pre>
    <form action="{{ url_for('main.send_ai_reply', eid=original_email.eid) }}" method="post">
        <input type="hidden" name="ai_reply" value="{{ ai_reply }}">
        <button type="submit">确定</button>
        <a href="{{ url_for('main.inbox') }}"><button type="button">取消</button></a>
    </form>
</body>
</html>
